/****************
 *@description: 
 *@author: Xhd
 *@API: 
 *@date: 2023-12-06 15:52:28
 *@version: V1.0.0
*************************************************************************/

import React from 'react'

// 商城订单列表
export async function apiGetShopOrderPage(params) {
  return await React.$post('trade/api/shopOrderInfo/getShopOrderPage', params);
}

// 商城订单-导出
export async function apiGetShopOrderInfoList(params) {
  return await React.$post('trade/api/shopOrderInfo/getShopOrderList', params);
}

// 商城订单-详情
export async function apiShopOrderDetail(params) {
  return await React.$post('admin/shopOrderInfo/getShopOrderDetail',params)
}

// 售后订单列表
export async function apiGetSalesReturnOrderPag(params) {
  return await React.$post('management/shopSalesReturn/page', params);
}

// 售后订单-详情
export async function apiShopSalesReturnOrderDetail(params) {
  return await React.$post('management/shopSalesReturn/view', params);
}

// 批量发货列表
export async function apiBatchSendPage(params) {
  return await React.$postJson('trade/api/b/StoreSendOrder/batchSendPage', params)
}

// 批量发货下载记录
export async function apiStoreSendOrderExportTask(params) {
  return await React.$get('trade/api/b/StoreSendOrder/exportTask', params)
}

// 批量发货-导入
export async function apiStoreSendOrderBatchSendOrder(params) {
  return await React.$postFormData('trade/api/b/StoreSendOrder/batchSendOrder', params)
}

//发货
export async function apiSendOrders(params) {
  return await React.$post('management/shopOrderInfo/sendOrders', params);
}

//配送员列表
export async function apiDeliverymanPage(params) {
  return await React.$post('management/verificationPersonnelInfo/deliverymanPage', params);
}
//重新指派配送员
export async function apiReassignDeliveryman(params) {
  return await React.$post('management/shopOrderInfo/reassignDeliveryman', params);
}
//重新指派快递
export async function apiEditCourierInformation(params) {
  return await React.$postFormData('management/shopOrderInfo/editCourierInformation', params);
}
